package com.sora.sora.common.model.param;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ImgParam {

//    @NotNull(message = "图片id不能为空")
//    private int id;

    @NotNull(message = "上传者id不能为空")
    private int uploaderId;

    @Length(max = 20, message = "图片名称不能超过20个字符")
    private String name;

    @NotNull(message = "图片文件不能为空")
    private MultipartFile img;

    private int[] tags;
}
